wayland: Reset server decoration interface on window mapping
authorDavid Edmundson <kde@davidedmundson.co.uk>
Thu, 28 Jun 2018 10:12:59 +0000 (11:12 +0100)
committerDavid Edmundson <kde@davidedmundson.co.uk>
Thu, 28 Jun 2018 17:50:50 +0000 (18:50 +0100)
The wl_surface is destroyed and recreated when the window is
mapped/unmapped. As we have a new wl_surface we need to create a new
server_decoration object for that surface.

gdk/wayland/gdkwindow-wayland.c

index d6513732671932f28bdfd9bcdb79347cc1bcb703..eba0f37f972d3aadb59c6f737c13d32b99885b57 100644 (file)
@@ -2938,11 +2938,13 @@ gdk_wayland_window_map (GdkWindow *window)
       else
         {
           gdk_wayland_window_create_xdg_toplevel (window);
+          gdk_wayland_window_announce_decoration_mode (window);
         }
     }
   else
     {
       gdk_wayland_window_create_xdg_toplevel (window);
+      gdk_wayland_window_announce_decoration_mode (window);
     }
 
   impl->mapped = TRUE;